//
//  FMResultSet+CYAddition.m
//  CreditAddressBook
//
//  Created by Lee on 15/10/15.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "FMResultSet+CYAddition.h"
#import "CYCollection.h"

@implementation FMResultSet (CYAddition)

- (CYCollection *)toCollection {
    CYCollection *article = [[CYCollection alloc] init];
    article.collectionId = [self stringForColumn:@"id"];
    article.phone = [self stringForColumn:@"phone"];
    article.name = [self stringForColumn:@"name"];
    article.headimageName = [self stringForColumn:@"headimage_name"];
    article.createTime = [self stringForColumn:@"create_time"];
    article.recordId = [self stringForColumn:@"record_id"];
    return article;
}
@end
